package all_pet_iv.database;

import java.sql.*;


public class Conexao {
    public static Connection getConexao() throws SQLException {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            return DriverManager.getConnection("jdbc:mysql://localhost/db_allpet", "root", "");
        } catch (ClassNotFoundException e) {
            throw new SQLException(e.getMessage());

        }

    }


}
